import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home'
import detail from '../views/detail/index.vue'
import upgrade from '../views/upgrade/index.vue'
import Pay from '../views/Pay/index.vue'
import PaySuccess from '../views/PaySuccess/index.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
	meta : {
		title : "雪卡查询"
	}
  },
  {
    path: '/detail',
    name: 'detail',
    component: detail,
  	meta : {
  		title : "雪卡信息"
  	}
  },
  {
    path: '/upgrade',
    name: 'upgrade',
    component: upgrade,
  	meta : {
  		title : "升级时长",
		keepAlive : true
  	}
  },
  {
    path: '/Pay',
    name: 'Pay',
    component: Pay,
  	meta : {
  		title : "确认支付"
  	}
  },
  {
    path: '/PaySuccess',
    name: 'PaySuccess',
    component: PaySuccess,
  	meta : {
  		title : "支付成功"
  	}
  },
]

const router = new VueRouter({
	mode: 'hash',
	base: process.env.BASE_URL,
	routes
})

export default router
